package events
{
	import flash.events.Event;
	
	import model.WBObject;
	
	import spark.components.Group;
	
	public class ObjectEvent extends Event
	{
		public static const OBJECT_SELECTED:String = "Object selected";
		public static const OBJECT_ADDED:String = "Object added";
		public static const OBJECT_MOVED:String = "Object moved";
		public static const OBJECT_DELETED:String = "Object deleted";
		public static const OBJECT_RESIZED:String = "Object resized";
		
		private  var _object:WBObject = null;
		private var _objectType:String;
		private var _objectXPos:Number;
		private var _objectYPos:Number;
		private var _deltaX:Number;
		private var _deltaY:Number;
		
		public function ObjectEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		public function get deltaY():Number
		{
			return _deltaY;
		}

		public function set deltaY(value:Number):void
		{
			_deltaY = value;
		}

		public function get deltaX():Number
		{
			return _deltaX;
		}

		public function set deltaX(value:Number):void
		{
			_deltaX = value;
		}

		public function get objectYPos():Number
		{
			return _objectYPos;
		}

		public function set objectYPos(value:Number):void
		{
			_objectYPos = value;
		}

		public function get objectXPos():Number
		{
			return _objectXPos;
		}

		public function set objectXPos(value:Number):void
		{
			_objectXPos = value;
		}

		public function get objectType():String
		{
			return _objectType;
		}

		public function set objectType(value:String):void
		{
			_objectType = value;
		}

		public function set object(value:WBObject):void
		{
			_object = value;
		}
		public function get object():WBObject
		{
			return _object;
		}
	}
}